/*
 * @author java_deng
 * @date 2025/2/5 13:33
 * @description
 */
package org.hbwl.controller;

import lombok.Getter;
import org.hbwl.dto.Region;
import org.hbwl.po.RegionPo;
import org.hbwl.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/region")
public class RegionController extends BaseController{
    @Autowired
    private RegionService regionService;

    @GetMapping("/list")
    public Object list( RegionPo regionPo){
        return success(regionService.list(regionPo));
    }

    @GetMapping("/column")
    public Object column(Long regionId){
        return success(regionService.column(regionId));
    }
}
